#ifndef GLOBALKEY_H
#define GLOBALKEY_H

#include <QObject>
#include <QAction>
#include <QKeyEvent>
#include <KF5/KGlobalAccel/KGlobalAccel>

class GlobalKey : public QObject
{
    Q_OBJECT
public:
    explicit GlobalKey(QObject *parent = nullptr);
    void RegisterKey(QString objectName, QList<QKeySequence> shortcut);
    void UnregisterKey();

signals:
    void sigKeyTriggered();

private:
    QAction *m_pAction = nullptr;

};

#endif // GLOBALKEY_H
